﻿<Window x:Class="WPF.Views.Asynchronous"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:Sample.ViewModels;assembly=Sample.ViewModels"
        Title="Asynchronous" Height="700" Width="500">
    <Window.DataContext>
        <vm:AsynchronousViewModel />
    </Window.DataContext>
    <StackPanel>
        <TextBlock>Incremental Wikipedia Search</TextBlock>
        <TextBox Text="{Binding SearchTerm.Value, UpdateSourceTrigger=PropertyChanged}" />
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <TextBlock Text="{Binding SearchingStatus.Value}" Grid.Column="0" />
            <TextBlock Text="{Binding ProgressStatus.Value}" Grid.Column="1" />
        </Grid>
        <ListBox ItemsSource="{Binding SearchResults.Value}" />
    </StackPanel>
</Window>